home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / eulisp / mpfeel.lha / MPFeel / Plurals / debug.c < prev    next >
C/C++ Source or Header  |  1991-11-28  |  966b  |  53 lines

  1. /*
  2.  *    Debugging
  3.  *
  4.  *    Author:    S.C.Merrall
  5.  *
  6.  *    File:    debug.h
  7.  *
  8.  *    Contents:    init_debug - initialise debugging
  9.  *                      DBG_CALL   - register function entry
  10.  *                      DBG_ARGS   - list argument values
  11.  *                      DBG_EXIT   - register function exit
  12.  *
  13.  *    Description:    This supplies a concise trace system which can be
  14.  *                      witched on and off in files by including debug_off.h
  15.  *                      instead of debug.h
  16.  *
  17.  *    Change History:
  18.  *
  19.  *    Date   Name Comment
  20.  *    -------- ---- -------
  21.  *    06:02:91 SCM  Created
  22.  *    18:02:91 SCM  Part of obejct system with naming convention
  23.  *
  24.  */
  25.  
  26. #include <stdio.h>
  27.  
  28. #include "constant.h"
  29.  
  30. FILE *dbg = stderr;
  31. char *dbg_g_fname;
  32.  
  33. #ifdef __STDC__
  34.  
  35. int init_debug( char *output_filename )
  36.  
  37. #else
  38.  
  39. int init_debug( output_filename )
  40.  
  41. char *output_filename;
  42.  
  43. #endif
  44.  
  45. {
  46.   dbg = fopen(output_filename, "w");
  47.  
  48.   if (dbg == NULL) return FAIL;
  49.  
  50.   return SUCCESS;
  51.  
  52. }
  53.